export default {}


type fn = (...args: any[]) => Promise<number>


const test: fn = async function (...args: any[]) {
    return new Promise((resolve, reject) => {
        if (Math.random() > 0.5) {
            return resolve(1)
        } else {
            return reject(2)
        }
    })
}